import { useState } from 'react';
export default () => {
  const [pagination, setPagination] = useState({
    pageNum: 1,
    pageSize: 20,
  });
  return {
    pagination,
    setPage(pageNum = 1, pageSize = 20) {
      setPagination({
        pageNum,
        pageSize,
      });
    },
  };
};
